package com.antipov.odp.rmi.intf;

import com.antipov.odp.rmi.valueobjects.Point;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Created with IntelliJ IDEA.
 * User: Andrew Antipov
 * Date: 19.02.14
 * Time: 1:17
 */
public interface PointService extends Remote, Serializable {

	Double distance(Point a, Point b) throws RemoteException;

	Double lengthRadius(Point a, Point b) throws RemoteException;

	Double lengthDiameter(Point a, Point b) throws RemoteException;

	Double squareRadius(Point a, Point b) throws RemoteException;

	Double squareDiameter(Point a, Point b) throws RemoteException;

}
